hide element selenium

59

hide element selenium -

public void hideElement(String xpath)
{
    WebElement element = driver.findElement(By.xpath(xpath));       
    ((JavascriptExecutor)driver).executeScript("arguments[0].style.visibility='hidden'", element);
}

Comments

Submit
0 Comments